/*
 * TestDialog.cpp
 *
 *  Created on: 2012-11-3
 *      Author: tutu
 */

#include "TestDialog.h"
#include "AuthTestPanel.h"
#include "DocumentTestPanel.h"
#include "DownloadTestPanel.h"
#include "FavoriteTestPanel.h"
#include "ShareTestPanel.h"
#include "RoleTestPanel.h"
#include "UploadTestPanel.h"
#include "UserTestPanel.h"
#include <QResizeEvent>

TestDialog::TestDialog(QFrame *parent) : QFrame(parent)
{
	_tabWidget = new QTabWidget(this);
	_tabWidget->addTab(new AuthTestPanel(this), "Auth");
	_tabWidget->addTab(new DocumentTestPanel(this), "Document");
	_tabWidget->addTab(new DownloadTestPanel(this), "Download");
	_tabWidget->addTab(new FavoriteTestPanel(this), "Favorite");
	_tabWidget->addTab(new ShareTestPanel(this), "Share");
	_tabWidget->addTab(new RoleTestPanel(this), "Role");
	_tabWidget->addTab(new UploadTestPanel(this), "Upload");
	_tabWidget->addTab(new UserTestPanel(this), "User");
	_tabWidget->move(0, 0);

	this->resize(800, 600);
}

TestDialog::~TestDialog() {
	// TODO Auto-generated destructor stub
}

void TestDialog::resizeEvent(QResizeEvent *event)
{
	_tabWidget->resize(event->size());
}
